/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Entidades.grafo;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;

/**
 *
 * @author Gabriel
 */
public class Arco {
    private int posX;
    private int posY;

    private int posXX;
    private int posYY;

    public Graphics dibujar(Graphics2D g){  
        g.setColor(Color.BLACK);
        g.drawLine(posX, posY, posXX, posYY);
        return g;
    }

    /********************* MÉTODOS SETTERS Y GETTERS **************************/
    public int getPosX(){ return posX; }   
    public int getPosY(){ return posY; } 
    public int getPosXX(){ return posXX; }
    public int getPosYY(){ return posYY; }

    public void setPosX(int posX){ this.posX = posX; }
    public void setPosY(int posY){ this.posY = posY; }
    public void setPosXX(int posXX){ this.posXX = posXX; }
    public void setPosYY(int posYY){ this.posYY = posYY; }
}
